package com.example.system.entity.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Data
@TableName("tb_user")
public class UserDO extends BaseEntity implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    @TableField("nick_name")
    private String nickName;

    @TableField("head_image")
    private String headImage;

    @TableField("sex")
    private Integer sex;

    @TableField("phone")
    private String phone;

    @TableField("code")
    private String code;

    @TableField("email")
    private String email;

    @TableField("wechat")
    private String wechat;

    @TableField("school_name")
    private String schoolName;

    @TableField("major_name")
    private String majorName;

    @TableField("introduce")
    private String introduce;

    @TableField("status")
    private Integer status;
}